i = 1
while i <= 9:
    j = 1
    while(j <= i):    # j的大小是由i来控制的
        print('%d*%d=%-3d' % (i, j, i*j), end='\t')
        j += 1
    print('')
    i += 1
